@import '../../../color.less';

.transition{
	transition: transform .735s cubic-bezier(.4,1,.2,1), opacity .735s cubic-bezier(.4,1,.2,1);	
}
.hide{
	opacity: 0;
	transform: translate3d(100%,0,0);
}
.show{
	opacity: 1;
	transform: translate3d(0,0,0);
}

.container {
    height: 100%;
    position: relative;
    transition: width .235s ease-in;
    &.closeStyle {
        border: 0px;
        width: 0px;
    };
    &.openStyle {
        border-left: 1px solid @borderColor;
        width: 350px;
        flex-shrink: 0;
    }
    .sideBtn {
        position: absolute;
        height: 34px;
        line-height: 34px;
        z-index: 9;
        font-size: 0.79096rem;
        top: 50%;
        transform: translate(-100%, -50%);
        border: 1px solid #ccc;
        border-right: 0;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
        cursor: pointer;
        &:hover{
            border-color: @mainColor;
            color: @mainColor
        }
    }
    .close {
        cursor: pointer;
        position: absolute;
        font-size: 24px;
        top: -4px;
        left: 4px;
        z-index: 9;
        &:hover{
            color: @mainColor
        }
    }
    
    .animateContent {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        overflow: hidden;
        .wrapProjectInfo {
            height: 100%;
            .transition();
        }
        .wrapTaskInfo {
            height: 100%;
            width: 100%;
            position: absolute;
            left: 0;
            top: 0;
            .transition();
            .hide();
            .back {
                cursor: pointer;
                position: absolute;
                font-size: 18px;
                top: 2px;
                left: 10px;
                z-index: 9;
            }
        }
        &.taskActive{
            .wrapTaskInfo{
                .show();
            }
            .wrapProjectInfo{
                .hide();
                transform: translate3d(-100%,0,0);
            }
        }
    }
}

.info {
    height: 100%;
    display: flex;
    flex-direction: column;
    .header {
        border-bottom: 1px solid @borderColor;
        color: black;
        word-break: break-all;
        h3 {
            padding: 13px 10px;
            padding-top: 24px;
            margin: 0;
            font-size: 20px;
            font-weight: 500;
            color: #000;
            .flag {
                font-size: 18px;
                color: @warnColor;
                margin-left: 2px;
                position: relative;
                top: 3px;
            }
        }
        .name {
            padding: 0 0 6px 10px;
            span {
                margin-left: 16px;
                color: rgba(0, 0, 0, 0.65);
            }
        }
        .stage {
            padding: 0 0 12px 10px;
            .wrap {
                padding: 4px 8px 0 8px;
                overflow-x: hidden;
                overflow-y: scroll;
                color: rgba(0, 0, 0, 0.65);
                div {
                    display: inline-block;
                    margin-right: 14px;
                    cursor: pointer;
                    span { 
                        position: relative;
                        top: 2px;
                        margin-right: 4px;
                        color: @finshColor;
                    }
                }
                div.active {
                    color: @mainColor;
                }
            }
        }
    }
    .content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        .tabs {
            padding: 10px 0;
            width: 95%;
            margin: 0 auto;
            color: black;
            position: relative;
            div {
                display: inline-block;
                width: 25%;
                text-align: center;
                cursor: pointer;
            }
            div.active {
                color: @mainColor;
                font-weight: 500;
            }
            span {
                position: absolute;
                display: inline-block;
                width: 17%;
                bottom: 0;
                height: 2px;
                background-color: @mainColor;
                transition: left .2s
            }
            span.active0 {
                left: 4%;
            }
            span.active1 {
                left: 29%;
            }
            span.active2 {
                left: 54%;
            }
            span.active3 {
                left: 79%;
            }
        }
        .wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
            border-top: 1px solid @borderColor;
            overflow-y: auto;
            .wrapItem {
                flex: 1;
                padding: 16px;
                padding-top: 6px;
                overflow-y: auto;
            }
        }
    }
    .taskContent {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        padding-top: 20px;
        overflow-y: auto;
        .wrapItem {
            min-height: 90px;
            .item {
                display: flex;
                padding-left: 10px;
                padding-bottom: 4px;
                .lable {
                    flex-shrink: 0;
                    min-width: 5rem;
                    text-align: left;
                }
                .value {
                    flex: 1;
                    padding-left: 10px;
                }
            }
        }
    }
}